<?php 
# 文件名称:statistics.view.php
# MetInfo在线反馈系统 
# Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
class statisticsView extends C_view
{
	function statisticsView()
	{
		parent::C_view();
	}
	//加载模板
	function display($tpl)
	{		
		$SYS = &get_instance();
		$js_content = '';
		if($this->get('ChartData')!= null)
		$js_content='
			swfobject.embedSWF("'.SITEURL.'/plugins/ofc/open-flash-chart.swf", "chart1","100%", "350", "9.0.0", "expressInstall.swf",
			{"loading":"'.C_text::_('Item5').'..."} );
			function open_flash_chart_data()
			{
				return JSON.stringify(data);
			}
			var data = '.$this->get('ChartData').';
		';
		$this->assignRef('message', $SYS->loader->getMessageQueue());
		$SYS->doc->addScriptDeclaration($js_content);
		$SYS->html->script('json2.js','plugins/ofc/js/json/',false);
		$SYS->html->script('swfobject.js','plugins/ofc/js/',false);
		$this->assignRef( 'lists', $this->get('Lists'));
		$this->assignRef( 'title', C_text::_('statistics manager'));
		parent::display('statistics');
	}
}
# 本程序是一个开源系统,使用时请你仔细阅读使用协议,商业用途请自觉购买商业授权.
# Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
?>